package com.sxkf.template.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@ApiModel(description = "t_brand")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "t_brand")
public class Brand {
    /**
     * 品牌ID
     */
    @TableId(value = "id", type = IdType.NONE)
    @ApiModelProperty(value = "品牌ID",hidden = true)
    private String id;

    /**
     * 品牌名称
     */
    @TableField(value = "`name`")
    @ApiModelProperty(value = "品牌名称")
    private String name;

    /**
     * 品牌Logo图片
     */
    @TableField(value = "logo_url")
    @ApiModelProperty(value = "品牌Logo图片")
    private String logoUrl;

    /**
     * 品牌描述
     */
    @TableField(value = "description")
    @ApiModelProperty(value = "品牌描述")
    private String description;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间",hidden = true)
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "修改时间",hidden = true)
    private Date updateTime;
}
